// TOWN DIALOGUE SCRIPT
//    Town 28: Castle Troglo

begintalkscript;

variables;

short i,j,k,r1,choice;

// King Vothkaro

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "King Vothkaro";
	text1 = "You stand before the King of the Troglodytes. He wears dark and pitted steel armor, of an archaic style. It looks like the armor predates the Empire itself.";
	text2 = "His face is scarred and deeply lined, and his hair is black and stringy. He looks exhausted.";
	text3 = "He waves you forward. _I am King Vothkaro, outsider. High King of the Troglodyte People. Have you read the book of history given to you?_";
	text5 = "You stand face to face with the King of the Troglodytes. He wears gleaming steel armor and a massive blade. His face is scarred and deeply lined, and his hair is black and stringy. ";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(28,17) == 0;
	question = "_I have not read the book._";
	text1 = "_Pfaugh! Do so. You must know of our people before you can help us. I know it was left for you. Go find it, and return when you are wise._";
	action = END_TALK;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(28,17) == 0 && gf(28,16) >= 1;
	question = "_I have read the book._";
	text1 = "_Good. Then you know of our people, and our great foes, the giants, who are cruelly kept from us. You know us, and now you must know more. You must know why I had you brought here._";
	action = SET_SDF 28 17 1;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(28,17) >= 1;
	question = "_Your treatment of me has been very strange._";
	text1 = "_It is necessary. The proud troglodytes, we are divided. There are arguments, and treachery. Thus, I must be careful. The guards here? They can be trusted. If any of my other warriors see you, they may be agents of foolish Elhioc, they will spit you._";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(28,17) >= 1;
	question = "_Can I explore the rest of the castle?_";
	text1 = "_If you help me, you may explore the tunnels below, the realm of the khazis. You cannot explore the rest of the castle, though. You would be slain._";
	
begintalknode;
	state = 1;
	nextstate = 2;
	condition = gf(28,17) >= 1;
	question = "_Why did you allow me to come before you?_";
	text1 = "His voice is deep and commanding. _The scroll I had left for you told you the things you need to know about our people. We are a rootless people, we are a holy people, and we have an ancient enemy._";
	text2 = "_We are the Troglodytes. We are proud._";

begintalknode;
	state = 2;
	nextstate = -1;
	condition = gf(28,18) == 0;
	question = "_You troglos are a mighty people._";
	text1 = "He snarls and puts his hand on his massive blade. _You humans call us troglos. Do not ever call us troglos. It is insulting._";
	action = SET_SDF 28 18 1;

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_Rootless? So you don't know where your people are from?_";
	text1 = "_We were once destroyed. Wiped off the face of the earth. Then we were brought back by the Glowing Ones. We aren't sure who our destroyers were, but I have a guess._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_Who are the glowing ones?_";
	text1 = "_We know little of the glowing ones. They speak to us. They made us, or so they say. They are insubstantial glowing forms, and we can tell little of what they truly are. They tell us to do things. Like wipe out the humans of these lands. We do them, but only because it is what we wish._";
	text2 = "_They do not want us to fight the giants. I wish to. One khazi, cursed Elhioc, worships them and will do as they say. I do not think he is wise._";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Who do you think destroyed your kind?_";
	text1 = "_I believe the Ancient Enemy destroyed us._ Actually, it was almost undoubtedly the Empire, but you keep quiet about this. The Empire's campaign against non-human races has been vicious, thorough, and successful.";

begintalknode;
	state = 4;
	nextstate = 5;
	question = "_Who is your ancient enemy?_";
	text1 = "_The giants!_ He hawks and spits. _Our holy, eternal foe! Their crimes against us were unspeakable, and their punishment will be too!_";
	text2 = "He glowers. _Unfortunately, the khazis do not agree, and one of them is unwise. That is why I have brought you here._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Who are the khazis?_";
	text1 = "_Our gods are secret and powerful, and our people are always half ruled by our holy leaders - the khazis. Khazis are generally wise. Unfortunately, there are exceptions._";

begintalknode;
	state = 5;
	nextstate = 6;
	question = "_Who is the one you think is unwise?_";
	text1 = "_The leader of the khazis is Elhioc. He believes something so heretical that anyone else who said it would be killed. He has said that we should ignore the ancient enemy and concentrate on fighting the humans._";
	text2 = "_The horror! To end the great war! I am repulsed by his cowardice! Alas, he is my equal in the eyes of our people. That is why I have brought you here. I have a mission for you._";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_Tell me of this mission._";
	text1 = "He smiles wryly. _Elhioc is wise, and the walls have ears. Let us just say he should be made to answer for his heresy. He must pay._";
	action = SET_SDF 28 8 5;

begintalknode;
	state = 7;
	nextstate = 8;
	question = "_How will he pay for his heresy?_";
	text1 = "_Return to your cell. A new scroll has been placed there for you. Much will be made clear to you. Much benefit can come to you humans if you help. Benefit to me, peace to humans, but only if Elhioc is dead._";
	action = SET_SDF 28 8 5;


begintalknode;
	state = 8;
	nextstate = -1;
	question = "_I will read your offer. If I think it will help the humans, I may help you._";
	text1 = "_Yes. Go to your cell. Read. Learn. If you are brave, you humans will be forgiven the crimes against us and allowed to live a while longer. Go. Go!_";
	action = END_TALK;

begintalknode;
	state = 8;
	nextstate = -1;
	question = "_I will not help you. I will not work for troglos._";
	text1 = "Vothkaro hisses with anger. _You are a fool, then. But yet, in my generosity, I do not withdraw the honor. If you want to go, there is a concealed exit near your cell. But if you are wise, you will read the letter in your cell and help us._";
	action = END_TALK;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_I have tricked you, Vothkaro! Now I can eliminate you once and for all!_ (Attack.)";
	text1 = "He lifts his massive greatsword with one hand. _You fools! I would have spared the humans, for a small favor. Instead, you will die for your treachery!_";
	action = END_TALK;
	code =
		sf(28,14,1);
		make_zone_hostile();
	break;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "_I am not ready to deal with you yet._";
	text1 = "_Then go, but hurry. My enemy below can find that you are here at any moment. Then blood will be shed._";
	action = END_TALK;
